package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.StrategyComment;
import cn.wolfcode.wolf2w.query.StrategyCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IStrategyCommentService {
    void save(StrategyComment StrategyComment);
    void update(StrategyComment StrategyComment);
    void delete(String id);
    StrategyComment get(String id);
    List<StrategyComment> listAll();

    /**
     * 增加评论
     * @param strategyComment
     */
    void addComment(StrategyComment strategyComment);

    Page<StrategyComment> query(StrategyCommentQuery qo);

    /**
     * 点赞
     * @param cid
     * @param id
     */
    void commentThumb(String cid, String id);
}
